package yxk.form.kd.wtc.wtpm.supsignself;/*
 *
 *@author lqh
 *@date 2023/9/14
 *
 */

import kd.bos.form.control.Label;
import kd.bos.form.control.events.ItemClickEvent;
import kd.wtc.wtpm.formplugin.suppleapply.SupSignSelfEdit;
import kd.wtc.wtpm.formplugin.suppleapply.helper.SupSignViewHelper;

import java.util.EventObject;

public class SupSignSelfBillPlugin extends SupSignSelfEdit {

    @Override
    public void afterBindData(EventObject eventObject) {
        super.afterBindData(eventObject);
        this.getView().setVisible(Boolean.FALSE, new String[]{"supsigncountpanel"});
        SupSignViewHelper.showMultipleCountLimit(this.getView());
    }

    @Override
    public void itemClick(ItemClickEvent evt) {
        super.itemClick(evt);
        String itemKey = evt.getItemKey();
        if ("bar_save".equals(itemKey) || "bar_submit".equals(itemKey)) {
            this.getView().setVisible(true, "supsigncountpanel", "countexplain", "sumstr");
        }
    }
}
